package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Programme;
import org.hxyjs.page.PageInfo;
import org.hxyjs.vo.ProgrammeView;

public interface ProgrammeService {
    /**
     * 查询全部学生
     * @return
     */
    public DTO<Programme> getAllProgrammes() throws Exception;

    /**
     * 删除学生
     * @param prno
     * @return
     * @throws Exception
     */
    public DTO<Programme> deleteProgrammeByPrno(String prno) throws Exception;
    /**
     *  修改学生
     * @param programmeView
     * @return
     */
    public DTO<Programme> updateProgrammeByPrno(ProgrammeView programmeView)  throws Exception;
    /**
     *  增加学生
     * @param programme
     * @return
     */
    public DTO<Programme> addProgramme(Programme programme)  throws Exception;

    /**
     * 根据主键查询学生
     * @param prno
     * @return
     * @throws Exception
     */
    public DTO<Programme> getProgrammeByPrno(String prno) throws Exception;

    /**
     *分页查询
     * @param pageInfo
     * @return
     * @throws Exception
     */
     public DTO<Programme> getProgrammeByPage(PageInfo pageInfo, String cacheId) throws Exception;

     public DTO<Programme> getProgrammeByPage(PageInfo pageInfo) throws Exception;



}
